<template>
  <div id="app">
    {{$store.state.name}}
     -- {{name}}
     -- {{message}}
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'App',
  computed: {
    message () {
      return 'oh'
    },
    ...mapState({
      name: state => state.name
    })
  }
}
</script>

<style>

</style>
